<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PoserLoot.Web.Models.Entry>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Entry.Create
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">
    <% Html.RenderPartial("CategoryIndex", ViewData["IEnumerable<Category>"]); %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="/Content/jquery.rte/jquery.rte.css" rel="stylesheet" type="text/css" />

    <script src="/Scripts/jquery.rte.js" type="text/javascript"></script>

    <script src="/Scripts/jquery.rte.tb.js" type="text/javascript"></script>

    <div id="gridTopic" class="topic">
        <h2>
            Entry.Create</h2>
    </div>
    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       {%>
    <fieldset>
        <p>
            <label for="Code">
                Code:</label>
            <%= Html.TextBox("Code") %>
            <%= Html.ValidationMessage("Code", "*") %>
        </p>
        <p>
            <label for="Appellation">
                Appellation:</label>
            <%= Html.TextBox("Appellation", String.Empty, new { @class = "winput" })%>
            <%= Html.ValidationMessage("Appellation", "*") %>
        </p>
        <p>
            <label for="Summary">
                Summary:</label>
            <%= Html.TextArea("Summary")%>
            <%= Html.ValidationMessage("Summary", "*")%>
        </p>
        <p>
            <label for="Description">
                Description:</label>
            <%= Html.TextArea("Description")%>
            <%= Html.ValidationMessage("Description", "*") %>
        </p>
        <p>
            <label for="ReferenceUrl">
                ReferenceUrl:</label>
            <%= Html.TextBox("ReferenceUrl", String.Empty, new { @class = "winput" })%>
            <%= Html.ValidationMessage("ReferenceUrl", "*") %>
        </p>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
    <% } %>

    <script type="text/javascript">
        $(document).ready(function() {
            $('#Summary').rte({
                width: 350,
                height: 100
            });
            $('#Description').rte({
                width: 650,
                height: 200
            });
        });
    </script>

</asp:Content>
